package com.test.lotterysystem.Comment.ErrorCode;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
public enum ServiceErrorCode implements ErrorCode{
    REGISTER_INFO_IS_EMPTY(100,"注册信息为空"),
    MAIL_IS_ERROR(101,"邮箱格式错误"),
    PHONE_IS_ERROR(102,"手机格式错误"),
    IDENTITY_IS_ERROR(103, "用户身份错误"),
    PASSWORD_IS_EMPTY(104,"管理员密码为空"),
    PASSWORD_ERROR(105,"密码错误"),
    MAIL_IS_USE(106,"邮箱已经被使用"),
    PHONE_IS_USE(107,"手机号已经被使用");

    private Integer code;
    private String errMsg;
    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getErrMsg() {
        return errMsg;
    }
}
